package org.zizi.db.column.impl;

import java.sql.Blob;
import java.sql.ResultSet;

import org.zizi.db.column.AbstractColumnReader;

public class BlobColumnReader extends AbstractColumnReader
{
	public byte[] read(ResultSet rs, int column) throws Exception
	{
		Blob blob = rs.getBlob(column);
		if (blob == null) return null;
		
		return blob.getBytes(1, (int) blob.length());
	}
}
